package com.credit.dao.admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @InterfaceName AdminUserDAO
 * @Description 管理员DAO接口
 */
public interface AdminUserDAO extends JpaRepository<AdminUser, String>, JpaSpecificationExecutor<AdminUser> {

    AdminUser findByZhanghao(Integer zhanghao);

    // 根据账户、邮箱、密保进行查找用户
    AdminUser findByZhanghaoAndEmailAndMibao(Integer zhanghao, String email, String mibao);

    AdminUser getByZhanghaoAndPassword(Integer zhanghao, String password);


    AdminUser findByZhanghaoAndEmail(Integer zhanghao, String email);


}
